package oop2.Task2;

public class Airplane {
    String brand;
    String line;
   int heightMax;
    int seatNumber;

    public Airplane(String brand, String line, int heightMax, int seatNumber) {
        this.brand = brand;
        this.line = line;
        this.heightMax = heightMax;
        this.seatNumber = seatNumber;
    }
    public void show() {
        System.out.println("飞机品牌:"+brand+",路线:"+line+",最大飞行高度:"+heightMax+"米,座位数:"+seatNumber);
    }

    public void fly() {
        System.out.println(brand + "飞机起飞了");
    }

    public void land() {
        System.out.println(brand + "飞机降落了");
    }

}
